package cn.lijiajia3515.cairo.auth.modules.serial;

import cn.lijiajia3515.cairo.mongo.data.AbstractMongo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.MongoId;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)

@NoArgsConstructor
@AllArgsConstructor

@SuperBuilder(toBuilder = true)
public
class SerialMongo extends AbstractMongo {

	@MongoId
	private ObjectId _id;

	private String id;

	private String client;

	private String name;

	private Long value;

	private Long step;

	private String remark;

	public static final Field FIELD = new Field();

	public static class Field extends AbstractMongo.Field {
		public final String CLIENT = field("Client");
		public final String ID = field("Id");
		public final String NAME = field("Name");
		public final String VALUE = field("Value");
		public final String STEP = field("Step");
		public final String Remark = field("Remark");

	}
}
